// 模拟量
var PageCounterInterval = {
    id: "PageCounterInterval", //页面id
    menu: "i18n.lan.menu.io", //所属菜单(一级菜单名)
    title: "i18n.lan.menu.PageCounterInterval", //标题（二级菜单名）
    icon: "icon-me-interval", //图标
    refreshBtnCmd: "INTERVAL_DUMPS", //刷新按钮指令
    saveBtn: true, //保存按钮
    el: [ //控件  
        {
            elname: "datagrid",
            rowCount: Device.getNodesCount("di"), //必选,行数
            data: {
                width:"680px",
                columns: [
                    [ //表格列,field为列标题
                        {
                            field: "index",
                            width: 40,
                            align:"center",
                        },
                        {
                            field: "iAlarmHigh",
                            editor:Easyui.editor.numberbox4,
                            dumpKey: "COUNTER<n>INTER",
                            dumpParamIndex: 1,
                            cmdKey: "ICOUNTER<n>HIGH",
                            width:120,
                        },
                        {
                            field: "intervalTime",
                            editor:Easyui.editor.numberbox,
                            dumpKey: "COUNTER<n>INTER",
                            dumpParamIndex: 0,
                            cmdKey: "ICOUNTER<n>TO",
                            width:120,
                        },                        
                        {
                            field: "interlockPulseTime",
                            editor:Easyui.editor.numberbox,
                            dumpKey: "COUNTER<n>INTER",
                            dumpParamIndex: 3,
                            cmdKey: "ICOUNTER<n>DOPULSETO",
                            dealDumpParam:"parseInt(value)/1000",
                            getValue:"value*1000",
                            width:120,
                        },
                        {
                            field: "interlockDo",
                            formatter:Easyui.formatter.combobox,
                            editor: new Easyui.editor.Combobox(Device.getDoItemsKV()),
                            dumpKey: "COUNTER<n>INTER",
                            dumpParamIndex: 2,
                            cmdKey: "ICOUNTER<n>DO",
                            width:120,
                        },
                        {
                            field: "smsAlarm",
                            dumpKey: "COUNTER<n>INTER",
                            formatter:Easyui.formatter.checkbox,
                            editor: Easyui.editor.checkbox,
                            dumpParamIndex: 4,
                            cmdKey: "ICOUNTER<n>SMSEN",
                            width: 70,
                            align: "center",
                        },
                        {
                            field: "soundAlarm",
                            dumpKey: "COUNTER<n>INTER",
                            formatter:Easyui.formatter.checkbox,
                            editor: Easyui.editor.checkbox,
                            dumpParamIndex: 5,
                            cmdKey: "ICOUNTER<n>SOUNDEN",
                            width: 70,
                            align: "center",
                        },
                    ]
                ],
            }
        },
    ],
}
CmdPage.add(PageCounterInterval); //添加到页面管理